Monads and Intensionality∗

نویسنده

  • Bill Wadge
چکیده

Monads are a concept of category theory which can be used to structure functional programs or even define nonstandard interpretations of the λ-calculus. These nonstandard functional languages share many of Lucid’s unusual features, such as the distinction between synchronic and general functions. In fact Lucid is exactly one of these languages, determined by a simple stream monad. We therefore propose that monadic functional programming is the appropriate meaning of “Intensional Programming”, with “Indexical Programming” reserved for languages in which intensions are indexed families of extensions. 1 An Unexpected Bounty Every year at ISLIP we have at least one soul-searching discussion on the topic “what is intensional programming?” Recently we added a new twist, an animated debate about “indexical” versus “intensional” programming. This new schism will undoubtedly cause even outsiders to be even more baffled than ever by the slippery notion of intensionality. At the same time, we often have an equally spirited but more accessible discussion of the old question “is Lucid a functional language?” Many functional programmers have argued that Lucid (and indexical languages in general) are not functional languages. One of the more convincing reasons was that indexical languages lacked higher-order functions. Fortunately, this defect has been remedied [4]. Nevertheless, even with higher-order functions Lucid is still very different from Miranda and Haskell. We have streams rather than lazy lists, and the streams are built into the language in a rather peculiar way. And of course Miranda and Haskell have nothing resembling GLU’s userdefined dimensions, or the notorious “freezing” of the original Lucid. For these reasons it is more usual to classify Lucid as a dataflow language, rather than as a functional language. Of course, even considered as a dataflow language, Lucid still appears idiosyncratic, but that is another story. This year I am pleased to report a new development which, I claim, gives a really good answer to all these questions. And the development is due entirely to our longtime rivals, functional programmers (especially Moggi and Wadler). They have (almost unwittingly) helped us solve some of our most perplexing issues and at the same time given Lucid a claim to far more mainstream respectability than we ever expected. At least that is the way I see the situation. They have discovered a whole family of nonstandard functional languages which share Lucid’s idiosyncracies. This new development, of course, is the discovery (by functional programmers, especially Wadler) of the significance of monads for programming languages.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Monads for natural language semantics

Accounts of semantic phenomena often involve extending types of meanings and revising composition rules at the same time. The concept of monads allows many such accounts—for intensionality, variable binding, quantification and focus—to be stated uniformly and compositionally.

متن کامل

Leibniz’s Monads and Mulla Sadra’s Hierarchy of Being: A Comparative Study

Mulla Sadra and Leibniz, the two philosophers from the East and the West, belong to two different worlds. Though they were unaware of the ideas of each other, their philosophical systems share certain common points that are comparable. Monads constitute the basis of Leibniz's thought and he refers to their features in his various works. On the other side, Mulla Sadra's philosophy is also based ...

متن کامل

Factives and Intensionality

Notion of normal intensionality and of intensionality preserving negation are introduced. Both these notions apply to intensional sentential operators. When applied to factive operators they allows us to understand the way these operators give rise to presuppositions and their duals, assertions. They allow us also to distinguish semantically emotive factives from non-emotive ones.

متن کامل

Applications of the Kleisli and Eilenberg-Moore 2-adjunctions

In 2010, J. Climent Vidal and J. Soliveres Tur developed, among other things, a pair of 2-adjunctions between the 2-category of adjunctions and the 2-category of monads. One is related to the Kleisli adjunction and the other to the Eilenberg-Moore adjunction for a given monad.Since any 2-adjunction induces certain natural isomorphisms of categories, these can be used to classify bijection...

متن کامل

A Higher-order Fine-grained Logic for Intensional Semantics

This paper describes a higher-order logic with fine-grained intensionality (FIL). Unlike traditional Montogovian type theory, intensionality is treated as basic, rather than derived through possible worlds. This allows for fine-grained intensionality without impossible worlds. Possible worlds and modalities are defined algebraically. The proof theory for FIL is given as a set of tableau rules, ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012